#ifndef LIGHTS_H
#define LIGHTS_H

#include <stdlib.h>
#include <QGLWidget>

struct lit{
    float ambient[4];
    float specular[4];
    float diffuse[4];
    float position[4];
    lit *next;

    lit(float am[], float spec[], float dif[], float pos[]){
        ambient[0]=am[0];
        ambient[1]=am[1];
        ambient[2]=am[2];
        ambient[3]=am[3];
        specular[0]=spec[0];
        specular[1]=spec[1];
        specular[2]=spec[2];
        specular[3]=spec[3];
        diffuse[0]=dif[0];
        diffuse[1]=dif[1];
        diffuse[2]=dif[2];
        diffuse[3]=dif[3];
        position[0]=pos[0];
        position[1]=pos[1];
        position[2]=pos[2];
        position[3]=pos[3];
        next=NULL;
    }
};

class lights
{
public:
    lights();
    lights(float position[], float ambient[], float specular[], float diffuse[]);
    ~lights();

    void turnOnLights();
    void addLight(float position[], float ambient[], float specular[], float diffuse[]);
    void turnOffLights();

    //store lights
    lit* myLights;
};

#endif // LIGHTS_H
